import { http1 } from '@/utils/http'
// 搜索拍照题
export const searchAPI = (data: any) => {
  return http1({
    url: '/api/kaosi',
    method: 'POST',
    data: { timu: data },
  })
}
// 搜题
export const searchAPI2 = (data: any) => {
  return http1({
    url: '/api/searchAPI2',
    method: 'POST',
    data: { timu: data },
  })
}
// 考试页面获取 年级数据
export const getGrade = (obj) => {
  return http1({
    url: '/api/getGrade',
    method: 'POST',
    data: { nianji: obj },
  })
}
// 获取对应的年级课程内容练习
export const getGradeContent = (obj) => {
  return http1({
    url: '/api/getGradeContent',
    method: 'POST',
    data:obj,
  })
}
// 获取对应的题目数据
export const getQuestion = (obj) => {
  return http1({
    url: '/api/getQuestion',
    method: 'POST',
    data: obj,
  })
}
// 插入分数结果的数据
export const insertScore = (obj) => {
  return http1({
    url: '/api/insertScore',
    method: 'POST',
    data: obj,
  })
}
// 考试历史数据
export const getHistory = (obj) => {
  return http1({
    url: '/api/getHistory',
    method: 'POST',
    data: obj,
  })
}
// 获取考试下列表
export const historyshujudati = (obj) => {
  return http1({
    url: '/api/historyshujudati',
    method: 'POST',
    data: obj,
  })
}
// 查询错题本的
export const getWrong = (obj) => {
  return http1({
    url: '/api/getWrong',
    method: 'POST',
    data: obj,
  })
}
// 获取单词
export const getWord = (obj) => {
  return http1({
    url: '/api/getWord',
    method: 'POST',
    data: obj,
  })
}
// 获取英语听力
export const getTing = (obj) => {
  return http1({
    url: '/api/getTing',
    method: 'POST',
    data: obj,
  })
}
// 获取听力详情
export const getTingDetail = (obj) => {
  return http1({
    url: '/api/getTingDetail',
    method: 'POST',
    data: obj,
  })
}
// 获取练习测试的数据
export const getTest = (obj) => {
  return http1({
    url: '/api/getTest',
    method: 'POST',
    data: obj,
  })
}
// 获取文件的数据
export const getFilell1 = (obj) => {
  return http1({
    url: '/api/getFilell1',
    method: 'POST',
    data: obj,
  })
}
